Skip to content

fix(sessions): show inline banner on cloud stream disconnect#2194

Open
thmsobrmlr wants to merge 1 commit into
mainfrom
posthog-code/inline-cloud-disconnect-banner
Open

fix(sessions): show inline banner on cloud stream disconnect#2194
thmsobrmlr wants to merge 1 commit into
mainfrom
posthog-code/inline-cloud-disconnect-banner

Conversation

@thmsobrmlr
Copy link
Copy Markdown
Contributor

@thmsobrmlr thmsobrmlr commented May 18, 2026

Summary

  • When the cloud SSE stream gives up after exhausted reconnects, SessionView was painting a fullscreen absolute inset-0 error overlay on top of an already-rendered ConversationView — hiding all the cached events even though session data is still in memory and logs are on disk.
  • Plumb the existing retryable flag from CloudTaskErrorUpdate through service.tssessionStoreuseSessionViewStateSessionView.
  • When hasError && errorRetryable && events.length > 0, render a small red CloudStreamDisconnectedBanner above the conversation with title, message, and Retry button. Otherwise (hard errors, no events yet, non-retryable failures), keep the existing fullscreen overlay.

Testing

tried locally (just wait 15+ min with any task selected and then click into another cloud task)

Screenshot 2026-05-18 at 21.04.55.png

When the cloud SSE stream gives up after exhausted reconnect attempts,
the task UI rendered a fullscreen error overlay on top of the already
populated ConversationView, hiding all cached events. The session data
was still in memory (and logs on disk), so the overlay was the only
thing blocking access to the conversation.

Plumb the existing `retryable` flag from CloudTaskErrorUpdate through
the session store onto AgentSession. When `hasError && errorRetryable
&& events.length > 0`, render a small red banner above the conversation
with the error title and a Retry button instead of the fullscreen
overlay. Hard errors (no events yet, non-retryable) keep the existing
overlay path.

Generated-By: PostHog Code
Task-Id: 0be36564-39e9-475b-8d1c-c74911ebecde
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 18, 2026

Reviews (1): Last reviewed commit: "fix(sessions): show inline banner on clo..." | Re-trigger Greptile

@thmsobrmlr thmsobrmlr requested a review from a team May 18, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant